package xiaodou.core.controls
{
	import flash.display.DisplayObject;
	
	import mx.managers.PopUpManager;
	
	import spark.components.Panel;
	
	import xiaodou.core.display.ScaleHider;
	
	public class SPanel extends Panel
	{
		public function SPanel()
		{
			super();
		}
		
		public function show(parent:DisplayObject):void
		{
			PopUpManager.addPopUp(this, parent);
			PopUpManager.centerPopUp(this);
		}
		
		public function hide():void
		{
			new ScaleHider().show(this);
			PopUpManager.removePopUp(this);
		
		}
	}
}